package com.yhw.nc.job.admin.core.model.vo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author yhw
 */
@Api(value = "任务详情模型")
@Data
public class NcJobInfoVO  {

    @ApiModelProperty(value = "任务主键ID")
    private Integer id;

    /**
     * 任务名称
     */
    @ApiModelProperty(value = "任务名称")
    private String jobName;

    /**
     * 执行器主键ID
     */
    @ApiModelProperty(value = "执行器主键ID")
    private int jobGroupId;

    @ApiModelProperty(value = "执行器名称")
    private String jobGroupName;

    /**
     * 任务执行CRON表达式
     */
    @ApiModelProperty(value = "任务执行CRON表达式")
    private String jobCron;

    @ApiModelProperty(value = "任务描述")
    private String jobDesc;

    /**
     * 报警邮件
     */
    @ApiModelProperty(value = "报警邮件")
    private String alarmEmail;

    /**
     * 执行器路由策略
     */
    @ApiModelProperty(value = "执行器路由策略")
    private Integer routeStrategy;

    /**
     * 执行器，任务参数
     */
    @ApiModelProperty(value = "执行器，任务参数")
    private String executorParam;

    /**
     * 失败重试次数
     */
    @ApiModelProperty(value = "失败重试次数")
    private int executorFailRetryCount;

    /**
     * 调度状态：0-停止，1-运行 2-手动触发
     */
    @ApiModelProperty(value = "调度状态：0-停止，1-运行 2-手动触发")
    private int triggerStatus;


    /**
     * 上次调度时间
     */
    @ApiModelProperty(value = "上次调度时间")
    private long triggerLastTime;
    /**
     * 下次调度时间
     */
    @ApiModelProperty(value = "下次调度时间")
    private long triggerNextTime;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private String remarks;


}
